package cn.wolfcode.mapper;

import cn.wolfcode.domain.Activity;
import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;
import java.util.Set;

public interface ActivityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Activity record);

    Activity selectByPrimaryKey(Long id);

    List<Activity> selectAll();

    int updateByPrimaryKey(Activity record);

    List<Activity> selectForList(QueryObject qo);

    Activity selectById(Long id);

    void  insertRelation(@Param("employeeId") Long employeeId, @Param("activeId") Long activeId, @Param("creatDate") Date creatDate);

    int selectNum(Long activityId);

    int selectByCount(@Param("employeeId") Long employeeId, @Param("activeId") Long activeId);

    Set<Long> selectByItemId(Long employeeId);

    Long selectByItemId2(Long id);

}